#include "thread.h"

int pwd(int netfd,sharInfo_t *sharInfo,MYSQL* mysql){
    train_t train;
    char path[256];
    get_pwd(sharInfo,mysql,path);
    train.length=strlen(path);
    memcpy(train.buf,path,strlen(path));
    send(netfd,&train.length,sizeof(int),MSG_NOSIGNAL);
    send(netfd,train.buf,train.length,MSG_NOSIGNAL);
    return 0;
}

